package org.idea.spring.condition.propertyinject;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author linhao
 * @Date created in 10:34 上午 2021/5/8
 */
@PropertySource(value = "classpath:my-prop.properties",encoding = "UTF-8")
public class MyResourceListConfig {

    @Value("${my.prop}")
    private String myProp;

    @Value("${my.id}")
    private String id;
}
